// var path = require('path');
module.exports = {
    // 基本路径
    // baseUrl: path.resolve(__dirname, './dist'),
    baseUrl: '/',
    // 输出文件目录
    outputDir: 'dist',
    // eslint-loader 是否在保存的时候检查
    lintOnSave: true,
    // use the full build with in-browser compiler?
    // https://vuejs.org/v2/guide/installation.html#Runtime-Compiler-vs-Runtime-only
    assetsDir: './',
    devServer: {
        port: 8080,
        proxy: {
            '/apis': {
                target: 'https://www.atu360.cn',  // target host
                ws: true,  // proxy websockets 
                changeOrigin: true,  // needed for virtual hosted sites
                pathRewrite: {
                    '^/apis': ''  // rewrite path
                }
            },
        }
    }
}